package com.edmond.service.impl;

import com.edmond.entity.Users;
import com.edmond.mapper.UsersMapper;
import com.edmond.service.IUsersService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersServiceImpl implements IUsersService {
    //  DI 注入 mapper访问对象
    @Autowired
    private UsersMapper usersMapper;
    @Override
    public Users adminLogin(Users users) {
        return usersMapper.find(users);
    }
}
